package com.sc.nft.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;
import java.util.List;

@Data
@ApiModel("创建dao")
public class CreationDaoDTO {

    @ApiModelProperty("创建daoId")
    @NotNull(message = "daoId不能为空")
    private Long id;

    @ApiModelProperty("创建dao的时候用户的手机号")
    private String userTel;

    @ApiModelProperty("权益图")
    private String rightsInterests;

    @ApiModelProperty("虚拟粉丝数")
    private Long falseFansSum;

    @ApiModelProperty("数字身份卡")
//    @Size(min = 1,max = 5 ,message = "数字身份卡至少1条至多5条")
    private List<DaoIdentityDTO> list;

    @ApiModelProperty("上线时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+08:00")
    private Date onlineTime;


}
